/* 支付相关样式 */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.payment-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.payment-content {
    background-color: #fff;
    width: 400px;
    max-width: 90%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease forwards;
}

.payment-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.payment-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.payment-close:hover {
    color: #555;
}

.payment-body {
    padding: 20px;
}

.payment-amount {
    text-align: center;
    margin-bottom: 20px;
}

.payment-price-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.payment-price {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
}

.payment-method img {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
}

.payment-method span {
    font-size: 14px;
}

.payment-method.active {
    border-color: #07c160;
    background-color: #f0f9eb;
}

.payment-method.wechat.active {
    border-color: #07c160;
}

.payment-method.alipay.active {
    border-color: #1677ff;
}

.payment-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.qrcode-container {
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
}

.qrcode-container img {
    max-width: 100%;
    max-height: 100%;
}

.qrcode-tip {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.payment-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.payment-timer-text {
    color: #ff9800;
}

/* 支付成功弹窗 */
.payment-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.payment-success-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.payment-success-content {
    background-color: #fff;
    width: 300px;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease forwards;
}

.payment-success-icon {
    font-size: 60px;
    color: #07c160;
    margin-bottom: 20px;
}

.payment-success-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
}

.payment-success-content p {
    margin: 0;
    color: #666;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 